package com.ssm.subject.domain.convert;

import com.ssm.subject.domain.bo.SubjectAnswerBO;
import com.ssm.subject.infra.basic.entity.SubjectJudge;
import com.ssm.subject.infra.basic.entity.SubjectMultiple;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectJudgeConvert {
    SubjectJudgeConvert INSTANCE = Mappers.getMapper(SubjectJudgeConvert.class);

    //SubjectAnswerBO 转 SubjectJudge (两个类属性名相同即可转)
    SubjectJudge subjectAnswerBoToJudge(SubjectAnswerBO subjectAnswerBO);

    //subjectJudgeList 转 AnswerBOList
    List<SubjectAnswerBO> subjectJudgeListToAnswerBoList(List<SubjectJudge> subjectJudges);
}
